/*
* @Author: Marte
* @Date:   2018-11-01 10:03:05
* @Last Modified by:   Marte
* @Last Modified time: 2018-11-02 16:42:22
*/

var express = require('express');
var router = express.Router();

const StaffService = require("../services/staff_service.js");
/* GET home page. */
router.get('/', function(req, res, next) {

  res.send('respond with a resource'+req);

});
router.post("/add", StaffService.add);

router.get("/find_by_page", StaffService.findByPage);

router.get("/find", StaffService.find);

router.get("/remove",StaffService.removeById);

router.post("/update",StaffService.update);

module.exports = router;

